package model

import (
	"time"
)

type RolePowerMapModel struct {
	Id         int64     `json:"id" xorm:"pk autoincr comment('auto_increment') BIGINT(20)"`
	RoleId     int64     `json:"role_id" xorm:"not null default 0 comment('角色ID') BIGINT(20)"`
	PowerId    int64     `json:"power_id" xorm:"not null default 0 comment('权限ID') BIGINT(20)"`
	CreateTime time.Time `json:"create_time" xorm:"not null default '1980-01-01 00:00:00' comment('创建时间') TIMESTAMP"`
}

func (*RolePowerMapModel) TableName() string {
	return "role_power_map"
}
